"""Added bonus settings to BotSettings

Revision ID: 753a76783127
Revises: 1457db00897c
Create Date: 2024-02-14 13:59:01.272666

"""
import sqlalchemy as sa
from alembic import op

# revision identifiers, used by Alembic.
revision = "753a76783127"
down_revision = "1457db00897c"
branch_labels = None
depends_on = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column(
        "bot_settings",
        sa.Column("days_before_using_bonus", sa.Integer(), server_default="0", nullable=False),
    )
    op.add_column(
        "bot_settings",
        sa.Column("maximum_bonus_for_order_percent", sa.Integer(), server_default="0", nullable=False),
    )
    op.add_column(
        "bot_settings",
        sa.Column("maximum_bonus_discount_percent", sa.Integer(), server_default="0", nullable=False),
    )
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column("bot_settings", "maximum_bonus_discount_percent")
    op.drop_column("bot_settings", "maximum_bonus_for_order_percent")
    op.drop_column("bot_settings", "days_before_using_bonus")
    # ### end Alembic commands ###
